<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../config/left.html">
            <!-- sidebar end -->
            <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>:33 <@s.m "shop.config.global.function"/></div>
                </div>

                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <@p.form id="baseForm" labelWidth="12" action="o_email_update.do">
                        <@p.text colspan="1" width="50" label="emailSender.host" id="host" name="host" value=(emailSender.host)! required="true" class="required" maxlength="50" help="emailSender.host.help"/>
                        <@p.text colspan="1" width="50" label="emailSender.encoding" id="encoding" name="encoding" value=(emailSender.encoding)! required="true" class="required" maxlength="20" help="emailSender.encoding.help"/><@p.tr/>
                        <@p.text colspan="1" width="50" label="emailSender.username" id="username" name="username" value=(emailSender.username)! required="true" class="required" maxlength="100" help="emailSender.username.help"/>
                        <@p.text colspan="1" width="50" label="emailSender.personal" id="personal" name="personal" value=(emailSender.personal)! required="true" class="required" maxlength="100" help="emailSender.personal.help"/><@p.tr/>
                        <@p.password colspan="2" label="emailSender.password" id="password" name="password" value=(emailSender.password)! required="true" class="required" maxlength="100"/><@p.tr/>
                        <@p.td colspan="2" label="messageTpl.resetPassowd">
                        <div class="msg-tpl"><@s.m "messageTpl.subject"/>:
                            <input type="text" id="resetPasswordSubject" name="resetPasswordSubject" value="${(messageMap['resetPassword'].subject)!}" class="required" maxlength="255" size="30"/>
                            &nbsp; &nbsp; <!--  <input type="button" value="<@s.m "messageTpl.sendTest"/>" onclick="senderEmail($('#resetPassswordTo').val(),$('#resetPasswordSubject').val(),$('#resetPasswordText').val());"/> <@s.m "messageTpl.sendEmail"/>: <input type="text" id="resetPassswordTo"/>-->
                        </div>
                        <div class="msg-tpl"><@s.m "messageTpl.support"/>: uid username resetKey resetPwd</div>
                    </@p.td><@p.tr/>
                    <@p.editor colspan="2" width="100"  label="找回密码内容" name="resetPasswordText" value=(messageMap['resetPassword'].text)! /><@p.tr/>
                    <@p.tr/>
                    <@p.td colspan="2" width="100" label="激活用户标题">
                    <input type="text" id="activeTitle" name="activeTitle" value="${(messageMap['resetPassword'].activeTitle)!}" class="required" maxlength="255" size="30"/>
                </@p.td><@p.tr/>
                <@p.editor colspan="2" width="100"  label="激活用户内容" name="activeTxt" value=(messageMap['resetPassword'].activeTxt)! /><@p.tr/>
                <@p.tr/>
                <@p.td colspan="2"><@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/></@p.td>
        </@p.form>
            </div>
    </div>



    </div>

    </div>

<script type="text/javascript">
function senderEmail(to,subject,text) {
	$.post('o_email_send_test.do',{
		host : $('#host').val(),
		encoding : $('#encoding').val(),
		username : $('#username').val(),
		password : $('#password').val(),
		personal : $('#personal').val(),
		subject : subject,
		text : text,
		to : to
	},function(data) {
		if(data.success) {
			alert('send email success!');
		} else {
			alert(data.message);
		}
	},'json');
}
</script>


<#include "/common/alert_message.html"/>
</body>
</html>